package com.epoch.servicecommunication.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Past;

/**
 * @author mi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Configuration
public class Card {

    /**
     * 发布编号
     */
    private Integer id;
    /**
     * 用户编号
     */
    @NotBlank(message = "打卡用户编号不能为空")
    private String csId;
    /**
     * 打卡时间
     */
    @Past
    private String time;

    private String cardName;

    private String content;
}
